package com.ruoyi.articleCollect.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章收藏对象 article_collect
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
public class ArticleCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Integer id;

    /** 文章id */
    @Excel(name = "文章id")
    private Integer articleId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 逻辑删除 */
    private Integer isDeleted;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setArticleId(Integer articleId) 
    {
        this.articleId = articleId;
    }

    public Integer getArticleId() 
    {
        return articleId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articleId", getArticleId())
            .append("userId", getUserId())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
